<template>
  <el-dialog :append-to-body="true" :close-on-click-modal="false" :visible.sync="dialog" title="模型设计" fullscreen style="width:100%;">
    <fmFrame :src="frameSrc" />
    <!--<iframe id="flowModelDesignFrame" :src="frameSrc" scrolling="auto" style="width:100%;height:550px;" frameborder="0" />-->
  </el-dialog>
</template>

<script>
import fmFrame from '@/components/iframe/index'
import { getToken } from '@/utils/auth'

export default {
  components: { fmFrame },
  props: {
    sup_this: {
      type: Object,
      required: true
    }
  },
  data() {
    return {
      dialog: false,
      modelId: '',
      frameSrc: ''
    }
  },
  methods: {
    beforeCreate() {
    },
    initDisplayInfo(modelId) {
      this.frameSrc = 'static/workflowdesign/modeler.html?modelId=' + modelId + '&X-AUTH-TOKEN=' + getToken()
    }
  }
}
</script>
<style>
</style>
